package tpo.lmhprovider.lmhprovider.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import pojo.Admin;
import tpo.lmhprovider.lmhprovider.service.AdminService;

import java.util.List;
import java.util.Map;

@RestController
public class AdminController {
    @Autowired
    AdminService adminService;
    @RequestMapping("getAdmin")
    public List<Admin> getAdmin1(@RequestBody Map map){
        return adminService.getAdmin1(map);
    }
}
